package 第5章多线程编程作业.Work1.Work1;

public class Account {
    private static int balance=1000;
    public int getBalance(){
        return balance;
    }
    //取款
    public void withdraw(int amount){
        balance=balance-amount;
    }

}
